<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <h:outputStylesheet library="css" name="style.css" />
    </h:head>

    <h:body>
        <h:form id="menu">
            <p:menubar autoDisplay="true">
                <p:menuitem value="Início" url="/pages/protected/consultor/index.xhtml"
                        icon="ui-icon-home" />
                <p:submenu label="Buscar" icon="ui-icon-search">
                    <p:submenu label="Formulário">
                        <p:menuitem value="Código"
                                action="/pages/protected/consultor/buscar/formulario/codigo.xhtml"
                                actionListener="#{formularioBean.limpaFormulario()}"
                                immediate="true" ajax="false" />
                        <p:submenu label="Data">
                            <p:menuitem value="Dia"
                                    action="/pages/protected/consultor/buscar/formulario/data/dia.xhtml"
                                    actionListener="#{formularioBean.limpaFormulario()}"
                                    immediate="true" ajax="false" />
                            <p:menuitem value="Mês"
                                    action="/pages/protected/consultor/buscar/formulario/data/mes.xhtml"
                                    actionListener="#{formularioBean.limpaFormulario()}"
                                    immediate="true" ajax="false" />
                        </p:submenu>
                    </p:submenu>

                    <p:menuitem value="Pescador"
                            action="/pages/protected/consultor/buscar/pescador.xhtml"
                            actionListener="#{pescadorBean.limpaPescador()}"
                            immediate="true" ajax="false" />
                    <p:menuitem value="Técnico"
                            action="/pages/protected/consultor/buscar/tecnico.xhtml"
                            actionListener="#{tecnicoBean.limpaTecnico()}"
                            immediate="true" ajax="false" />
                </p:submenu>
                <p:menuitem value="Sair" action="#{usuarioBean.logout()}"
                        icon="ui-icon-power" />
            </p:menubar>
        </h:form>
    </h:body>
</html>